When redirecting the output of the echo command using '>' on bash, the
authorEwan Mellor <ewan@xensource.com>
Thu, 14 Sep 2006 06:57:41 +0000 (07:57 +0100)
committerEwan Mellor <ewan@xensource.com>
Thu, 14 Sep 2006 06:57:41 +0000 (07:57 +0100)
commit2df254060e76678cc078dd1b4c6e9245aa531004
tree20f93fec8ef331f3809b96a3f391cddb7f5e6720
parentbf510c7f4c25b59bcda5617f656c95ac3391f505
When redirecting the output of the echo command using '>' on bash, the
output seems to be broken up into multiple write()s (depending on the
version of busybox?). Unfortunately /dev/tpm0 needs to have the complete
command written to in one chunk. The work-around 'echo <string> > file ;
cat file > /dev/tpm0' seems to get around this problem.
The patch also removes a redundant test and error output.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/xm-test/tests/vtpm/06_vtpm-susp_res_pcrs.py
tools/xm-test/tests/vtpm/07_vtpm-mig_pcrs.py
tools/xm-test/tests/vtpm/08_vtpm-mig_pcrs.py
tools/xm-test/tests/vtpm/vtpm_utils.py